package com.ldu.dao.intf;

import com.ldu.dao.query.support.PageResult;
import com.ldu.dao.dataobject.CartDO;
import com.ldu.dao.query.CartQuery;

import java.util.List;


/**
 * Manager for Cart.
 */
public interface CartManager {
    /**
     * query count by query condition.
     */
    int countByQuery(CartQuery query);

    /**
     * delete by query condition.
     */
    int deleteByQuery(CartQuery query);

    /**
     * delete by primary key.
     */
    int deleteByPrimaryKey(CartDO record);

    /**
     * insert selective.
     */
    long insertSelective(CartDO record);

    /**
     * select by query condition.
     */
    List<CartDO> selectByQuery(CartQuery query);


    /**
     * select by query condition with page.
     */
    PageResult<CartDO> selectByQueryWithPage(CartQuery query);

    /**
     * select by primary key.
     */
    CartDO selectByPrimaryKey(Long id);

    /**
     * update by query condition selective.
     */
    int updateByQuerySelective( CartDO record,  CartQuery query);

    /**
     * update by query condition.
     */
    int updateByQuery(CartDO record, CartQuery query);

    /**
     * update by primary key selective.
     */
    int updateByPrimaryKeySelective(CartDO record);
}